home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gAnswer, gObject, gStep, gFlag
- if gObject = 0 then
- set gStep to 0
- go(the frame)
- else
- if gObject = gAnswer then
- if gObject = 2 then
- set the castNum of sprite 2 to 33
- else
- if gObject = 3 then
- set the castNum of sprite 3 to 35
- else
- if gObject = 4 then
- set the castNum of sprite 4 to 37
- else
- if gObject = 6 then
- set the castNum of sprite 6 to 43
- else
- if gObject = 7 then
- set the castNum of sprite 7 to 39
- else
- if gObject = 16 then
- set the castNum of sprite 16 to 41
- else
- set the castNum of sprite 17 to 31
- end if
- end if
- end if
- end if
- end if
- end if
- set gStep to 0
- set gObject to 0
- puppetSound(0)
- go(the frame + 1)
- else
- set gStep to gStep + 1
- if gStep = 5 then
- if gObject = 2 then
- setAt(gFlag, 1, 1)
- end if
- if gObject = 3 then
- setAt(gFlag, 2, 1)
- end if
- if gObject = 4 then
- setAt(gFlag, 3, 1)
- end if
- if gObject = 6 then
- setAt(gFlag, 4, 1)
- end if
- if gObject = 7 then
- setAt(gFlag, 5, 1)
- end if
- if gObject = 16 then
- setAt(gFlag, 6, 1)
- end if
- if gObject = 17 then
- setAt(gFlag, 7, 1)
- end if
- set the visible of sprite gObject to 0
- set gStep to 0
- set gObject to 0
- else
- if gStep = 1 then
- puppetSound("up")
- else
- set the locV of sprite gObject to the locV of sprite gObject - 20
- end if
- end if
- go(the frame)
- end if
- end if
- end
-